﻿<Page
    x:Class="WellDone.PizzaDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Page.Resources>
        <Style x:Key="ListViewItemStyleOpenRPOS" TargetType="ListViewItem">
            <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
            <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="TabNavigation" Value="Local"/>
            <Setter Property="IsHoldingEnabled" Value="True"/>
            <Setter Property="Margin" Value="0,0,18,2"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListViewItem">
                        <ListViewItemPresenter SelectedBorderThickness="0" CheckHintBrush="{ThemeResource ListViewItemCheckHintThemeBrush}" CheckBrush="{ThemeResource ListViewItemCheckThemeBrush}" ContentMargin="3" ContentTransitions="{TemplateBinding ContentTransitions}" CheckSelectingBrush="{ThemeResource ListViewItemCheckSelectingThemeBrush}" DragForeground="{ThemeResource ListViewItemDragForegroundThemeBrush}" DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}" DragBackground="{ThemeResource ListViewItemDragBackgroundThemeBrush}" DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}" FocusBorderBrush="{ThemeResource ListViewItemFocusBorderThemeBrush}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" PointerOverBackgroundMargin="1" PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" PointerOverBackground="{ThemeResource ListViewItemPointerOverBackgroundThemeBrush}" ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}" SelectedPointerOverBorderBrush="{ThemeResource ListViewItemSelectedPointerOverBorderThemeBrush}" SelectionCheckMarkVisualEnabled="False" SelectedForeground="{ThemeResource ListViewItemSelectedForegroundThemeBrush}" SelectedPointerOverBackground="{ThemeResource ListViewItemSelectedPointerOverBackgroundThemeBrush}" SelectedBackground="{ThemeResource ListViewItemSelectedBackgroundThemeBrush}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Page.Resources>
    <Grid
        x:Name="RootPanel"
        Background="#FF98DEF8"
        Opacity=".75"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch">

        <Grid x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Width="650" Height="330" >
            <Button x:Name="btnWholeToppings" HorizontalAlignment="Left" Margin="20,20,0,0" VerticalAlignment="Top" Height="110" Width="110" Padding="0" Click="btnWholeToppings_Click">
                <Ellipse x:Name="btnWhole" Fill="Black" Height="100" Width="100" Opacity="1">
                </Ellipse>
            </Button>
            <Button x:Name="btnLeftToppings" HorizontalAlignment="Left" Margin="140,20,0,0" VerticalAlignment="Top" Height="110" Width="110" Padding="0" Click="btnLeftToppings_Click">
                <Ellipse Fill="Black" Height="100" Width="100" Opacity="1">
                    <Ellipse.Clip>
                        <RectangleGeometry Rect="0,0,50,100" />
                    </Ellipse.Clip>
                </Ellipse>
            </Button>
            <Button HorizontalAlignment="Left" Margin="260,20,0,0" VerticalAlignment="Top" Height="110" Width="110" Padding="0" Click="btnRightToppings_Click">
                <Ellipse x:Name="btnRightToppings" Fill="Black" Height="100" Width="100" Opacity="1">
                    <Ellipse.Clip>
                        <RectangleGeometry Rect="50,0,100,100" />
                    </Ellipse.Clip>
                </Ellipse>
            </Button>
            <ComboBox x:Name="cmbSpecialties" HorizontalAlignment="Left" Margin="20,150,0,0" VerticalAlignment="Top" Width="345" Height="56" FontSize="24"/>
            <ListView x:Name="lvToppings" HorizontalAlignment="Left" Height="183" ItemContainerStyle="{StaticResource ListViewItemStyleOpenRPOS}" Margin="405,20,0,0" VerticalAlignment="Top" Width="219" SelectionMode="None" Background="White">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <TextBlock Grid.Column="0" Text="{Binding MenuItemName}" />
                        </Grid>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
            <Button x:Name="btnDone" Content="Done" HorizontalAlignment="Left" Margin="140,230,0,0" VerticalAlignment="Top" Height="75" Width="125" FontSize="24" Click="btnDone_Click"/>
            <Button x:Name="btnClear" Content="Clear" HorizontalAlignment="Left" Margin="450,230,0,0" VerticalAlignment="Top" Height="75" Width="125" FontSize="24" Click="btnClear_Click"/>
        </Grid>
    </Grid>
</Page>
